<?php
/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
?>
<table width="100%" border="0">
    <thead>
        <tr>
            <th scope="col">Cargo</th>
            <th scope="col">Monto</th>
            <th scope="col">Fecha Inicia</th>
            <th scope="col">Cantidad</th>
            <th scope="col">Opciones</th>
        </tr>
    </thead>
    <tbody> 
        <?php
        $r = $this->cargos;
        if (count($r) <= 0) {
            ?>
            <tr>
                <td colspan="5">&nbsp;Sin Cargos</td>
            </tr>
            <?php
        } else {
            foreach ($r as $c) {
                ?>
                <tr>
                    <td><?php echo $c["DESCRIPCION"] ?></td>
                    <td><?php echo $c["VALOR"] ?></td>
                    <td><?php echo $c["FECHA_INICIA"] ?></td>
                    <td><?php echo $c["REPETICIONES"] ?></td>
                    <td><button type="button" alt="<?php echo $c["ID"] ?>"  id="lnk<?php echo $c["ID"] ?>">Quitar</button></td>
                </tr>
                <?php
            }
        }
        ?>
    </tbody>
</table>